package com.my_test.webmagic.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2019-06-12
 */
@TableName("search_tiezi")
public class SearchTiezi extends Model<SearchTiezi> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("word")
    private String word;

    @TableField("title")
    private String title;

    @TableField("tieba")
    private String tieba;

    @TableField("url")
    private String url;

    @TableField("tieba_url")
    private String tiebaUrl;

    @TableField("author_username")
    private String authorUsername;

    @TableField("author_url")
    private String authorUrl;

    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getWord() {
        return word;
    }

    public void setWord(String word) {
        this.word = word;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTieba() {
        return tieba;
    }

    public void setTieba(String tieba) {
        this.tieba = tieba;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTiebaUrl() {
        return tiebaUrl;
    }

    public void setTiebaUrl(String tiebaUrl) {
        this.tiebaUrl = tiebaUrl;
    }

    public String getAuthorUsername() {
        return authorUsername;
    }

    public void setAuthorUsername(String authorUsername) {
        this.authorUsername = authorUsername;
    }

    public String getAuthorUrl() {
        return authorUrl;
    }

    public void setAuthorUrl(String authorUrl) {
        this.authorUrl = authorUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SearchTiezi{" +
        "id=" + id +
        ", word=" + word +
        ", title=" + title +
        ", tieba=" + tieba +
        ", url=" + url +
        ", tiebaUrl=" + tiebaUrl +
        ", authorUsername=" + authorUsername +
        ", authorUrl=" + authorUrl +
        ", createTime=" + createTime +
        "}";
    }
}
